package com.ppc.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author jianKangS1
 * @date 2023/12/20
 */
@Component
@ConfigurationProperties(prefix = "ppc.jwt")
@Data
public class JwtProperties {


  /**
   * employer生成jwt令牌相关配置
   */
  private String employerSecretKey;
  private long employerTtl;
  private String employerTokenName;

  /**
   * worker生成jwt令牌相关配置
   */
  private String workerSecretKey;
  private long workerTtl;
  private String workerTokenName;
  /**
   * admin生成jwt令牌相关配置
   */
  private String adminSecretKey;
  private long adminTtl;
  private String adminTokenName;


}
